package com.hy.chanping.product.core.user.dtos;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserCreate {

    @NotBlank(message = "realName is required")
    @Size(min = 5, max = 20, message ="realName最小5个字符最大20个字符")
    private String realName;

    @NotBlank(message = "mobile is required")
    private String mobile;

}
